package comwork.example.halou.dog_live_tvt.fragments;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import comwork.example.halou.dog_live_tvt.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class HomeFragment extends Fragment {


    public HomeFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        return inflater.inflate(R.layout.fragment_home, container, false);
    }

//    // Inflate the layout for this fragment
//    AppCompatActivity activity = (AppCompatActivity) getActivity();
//    ActionBar supportActionBar = activity.getSupportActionBar();
//
//    supportActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM|ActionBar.DISPLAY_SHOW_TITLE,
//    ActionBar.DISPLAY_SHOW_CUSTOM|ActionBar.DISPLAY_SHOW_TITLE);
//    //        在actionbar上设置自定的View
//    TextView textView = new TextView(getContext());
//    textView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
//    textView.setText("狗在直播");
//    textView.setTextSize(20);
//    textView.setGravity(Gravity.CENTER);
//    supportActionBar.setCustomView(textView);
////        不让ActionBar设置默认的标题
//    supportActionBar.setDisplayShowTitleEnabled(false);
}
